package Demo;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Son extends Person{

    public String sonAge ="10";

    public static void main(String[] args) {
        Son[] sons = new Son[1];
        Person[] people;
        people = sons;
        people[0] = new Person();
        log.debug( sons[0].sonAge);

    }

    @Override
    public Son getPerson() {
        return new Son();
    }
}
